﻿<!DOCTYPE html>

<html>
<head>
    <title>@ViewBag.Title</title>
    <link href="../../Content/Login.css" rel="stylesheet" type="text/css" />
    <!--[if lt IE 8]>
    <style>
      html {
        overflow: auto;
        }
    </style>
    <![endif]-->
    <script language="javascript" type="text/javascript">

             function Redirect(formId, condition, url) {
                 if (document.getElementById(formId).innerHTML == condition) {
                     document.getElementById(formId).innerHTML = '';
                     window.location.href = url;
                 }
             }

             var savedValues = {};
             function clearField(id) {
                 var element = document.getElementById(id);
                 if (element == null) return;
                 savedValues[element.id] = element.value; element.value = '';
             }

             function restoreField(id) {
                 var element = document.getElementById(id);
                 if (element == null) return;
                 if (element.value == '' && savedValues[element.id]) {
                     element.value = savedValues[element.id];
                 }
             }

             function setCookie(name, value, expires, path, domain, secure) {
                 var curCookie = name + "=" + escape(value) +
                ((expires) ? "; expires=" + expires.toGMTString() : "") +
                ((path) ? "; path=" + path : "") +
                ((domain) ? "; domain=" + domain : "") +
                ((secure) ? "; secure" : "")

                 if ((name + "=" + escape(value)).length <= 4000)
                     document.cookie = curCookie
             }

             function storeWindowsWidth() {
                 var expirationTime = new Date();
                 expirationTime.setTime(new Date().getTime() + 30 * 24 * 60 * 60 * 1000);
                 setCookie('windowWidthKey', document.body.offsetWidth - 17, expirationTime, null, null, null);
             }
  
    </script>
</head>
<body onload="storeWindowsWidth();">
    <div class="loginForm">
        <div class="topArea">
            <h1 class="mainLogo"><a href="http://www.bsu.by" tabindex="1"><img src="../../Content/images/main-logo.png" alt="Yeap! System" title="" /></a></h1>
          <!--  <span class="mainSlogan" style="text-align:center;margin-top:20px;">Yearly projects</span> -->
        </div>
        <div class="mainArea">
            @RenderBody()
        </div>
    </div>
</body>
</html>
